package com.foundersoftware.commons.organization;

public class OrganizationException extends RuntimeException {
    /**
	 * Object UID
	 */
	private static final long serialVersionUID = 8591420772113847590L;
	private Exception cause;
    private String errorCode;
    public OrganizationException() {
        super();
    }

    public OrganizationException(String message){
        super(message);
    }

    public OrganizationException(String message, String errorCode){
        super(message);
        this.errorCode =errorCode;
    }


    public OrganizationException(Exception cause) {
        super(cause.toString());
        this.cause = cause;
    }

    public OrganizationException(String message,Exception cause) {
        super(message);
        this.cause = cause;
    }

    public OrganizationException(String message,Exception cause,String errorCode) {
        super(message);
        this.cause = cause;
        this.errorCode = errorCode;

    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public Exception getCause() {
        return cause;
    }

    public void setCause(Exception cause) {
        this.cause = cause;
    }
}
